package com.wwwarehouse.resource_center.fragment.information;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;

import com.wwwarehouse.common.bean.response.CommonClass;
import com.wwwarehouse.resource_center.R;
import com.wwwarehouse.resource_center.fragment.rules.TheParentFragment;

/**
 * @author Joseph on 2017/9/26.
 *         <p/>
 *         商品店铺描述详情界面
 */

public class InfomationDescripFragment extends TheParentFragment {

    TextView   mTvDescrop ;
    private String title;

    @Override
    protected int getContentId() {
        return R.layout.fragment_infomation_descrip;
    }

    @Override
    protected void init(View view) {
        mTvDescrop = findView(view,R.id.tv_descrip);
    }

    @Override
    protected void loadDatas() {
        String data = null;
        try {
            Bundle arguments = getArguments();
            data = arguments.getString("data");
            title = arguments.getString("title");
            mActivity.setTitle(title);
        } catch (Exception e) {
            e.printStackTrace();
        }
        mTvDescrop.setText(data);
    }

    @Override
    public void onSuccess(CommonClass commonClass, int what) {

    }

    @Override
    public void onReLoad(int code) {

    }
}
